import Vue from 'vue'
import Router from 'vue-router'
// import store from '@/store/store'
// import * as types from '@/store/types'
import Main from '@/Main.vue'
import Login from '@/Login.vue'
// import Person from '@/Person'
// import Dept from '@/Dept.vue'
// import Import from '@/Person/import.vue'
// import DeptImport from '@/Dept/import.vue'
// import ZhiduImport from '@/Zhidu/import.vue'
import User from '@/user/index.vue'
// import PersonDetail from '@/person/Detail.vue'
// import PersonEdit from '@/person/Edit.vue'
import Home from '@/Home.vue'
import Building from '@/Building.vue'
// import Mingce from '@/Mingce/index.vue'
// import Shenghuohui from '@/Shenghuohui/index.vue'
// import shenghuohuiDetail from '@/Shenghuohui/Detail.vue'
// import shenghuohuiUnit from '@/Shenghuohui/Unit.vue'
// import shenghuohuiList from '@/Shenghuohui/List.vue'
// import assessList from '@/assess/List.vue'
// import assessImport from '@/assess/Import.vue'
// import assessEdit from '@/assess/Edit.vue'
// import assessDetail from '@/assess/detail.vue'
// import assessImportResult from '@/assess/Importresult.vue'
// import Zhidu from '@/zhidu/index.vue'
import Map from '@/map.vue'
// import ImportLog from '@/Dept/log.vue'
import test from '@/user/test.vue'

Vue.use(Router)

const routes = [
  {
    path: '/',
    name: '首页',
    component: Main,
    redirect: 'init',
    children: [
      {
        path: '/building',
        name: 'Building',
        component: Building
      },
      {
        path: '/assess/import',
        name: 'AssessImport',
        component: () => import(/* webpackChunkName: "assess" */ '@/assess/Import.vue')
        // component: assessImport
      },
      {
        path: '/assess/external/:year',
        name: 'AssessExternal',
        component: () => import(/* webpackChunkName: "assess" */ '@/assess/external.vue')
        // component: assessImport
      },
      {
        path: '/assess/export',
        name: 'AssessExport',
        component: () => import(/* webpackChunkName: "assess" */ '@/assess/Export.vue')
        // component: assessImport
      },
      {
        path: '/assess/test',
        name: 'Assesstest',
        component: () => import(/* webpackChunkName: "assess" */ '@/assess/testpx.vue')
        // component: assessImport
      },
      {
        path: '/assess/importresult/:id',
        name: 'AssessImportResult',
        component: () => import(/* webpackChunkName: "assess" */ '@/assess/Importresult.vue')
        // component: assessImportResult
      },
      {
        path: '/assess/edit/:id',
        name: 'AssessEdit',
        component: () => import(/* webpackChunkName: "assess" */ '@/assess/Edit.vue')
        // component: assessEdit
      },
      {
        path: '/assess/detail/:id',
        name: 'AssessDetail',
        component: () => import(/* webpackChunkName: "assess" */ '@/assess/detail.vue')
        // component: assessDetail
      },
      {
        path: '/assess/detail2020/:id',
        name: 'AssessDetail2020',
        component: () => import(/* webpackChunkName: "assess" */ '@/assess/detail2020.vue')
        // component: assessDetail
      },
      {
        path: '/assess/detail2021/:id',
        name: 'AssessDetail2021',
        component: () => import(/* webpackChunkName: "assess" */ '@/assess/detail2021.vue')
        // component: assessDetail
      },
      {
        path: '/assess/detail2022/:id',
        name: 'AssessDetail2022',
        component: () => import(/* webpackChunkName: "assess" */ '@/assess/detail2022.vue')
        // component: assessDetail
      },
      {
        path: '/assess/detail2023/:id',
        name: 'AssessDetail2023',
        component: () => import(/* webpackChunkName: "assess" */ '@/assess/detail2023.vue')
        // component: assessDetail
      },
      {
        path: '/assess/detail2025/:id',
        name: 'AssessDetail2025',
        component: () => import(/* webpackChunkName: "assess" */ '@/assess/detail2025.vue')
        // component: assessDetail
      },
      {
        path: '/assess',
        name: 'Assess',
        component: () => import(/* webpackChunkName: "assess" */ '@/assess/List.vue')
        // component: (resolve) => require(['@/assess/List.vue'], resolve)
        // component: assessList
      },
      {
        path: '/probation/import',
        name: 'ProbationImport',
        component: () => import(/* webpackChunkName: "probation" */ '@/probation/Import.vue')
      },
      {
        path: '/probation/export',
        name: 'ProbationExport',
        component: () => import(/* webpackChunkName: "probation" */ '@/probation/Export.vue')
      },
      {
        path: '/probation/importresult/:id',
        name: 'ProbationImportResult',
        component: () => import(/* webpackChunkName: "probation" */ '@/probation/Importresult.vue')
      },
      {
        path: '/probation/edit/:id',
        name: 'ProbationEdit',
        component: () => import(/* webpackChunkName: "probation" */ '@/probation/Edit.vue')
      },
      {
        path: '/probation/detail/:id',
        name: 'ProbationDetail',
        component: () => import(/* webpackChunkName: "probation" */ '@/probation/detail.vue')
      },
      {
        path: '/probation',
        name: 'Probation',
        component: () => import(/* webpackChunkName: "probation" */ '@/probation/List.vue')
      },
      {
        path: '/zzsz/import',
        name: 'zzszImport',
        component: () => import(/* webpackChunkName: "zzsz" */ '@/zzsz/Import.vue')
      },
      {
        path: '/zzsz/export',
        name: 'zzszExport',
        component: () => import(/* webpackChunkName: "zzsz" */ '@/zzsz/Export.vue')
      },
      {
        path: '/zzsz/importresult/:id',
        name: 'zzszImportResult',
        component: () => import(/* webpackChunkName: "zzsz" */ '@/zzsz/Importresult.vue')
      },
      {
        path: '/zzsz/edit/:id',
        name: 'zzszEdit',
        component: () => import(/* webpackChunkName: "zzsz" */ '@/zzsz/Edit.vue')
      },
      {
        path: '/zzsz/detail/:id',
        name: 'zzszDetail',
        component: () => import(/* webpackChunkName: "zzsz" */ '@/zzsz/detail.vue')
      },
      {
        path: '/zzsz',
        name: 'zzsz',
        component: () => import(/* webpackChunkName: "zzsz" */ '@/zzsz/List.vue')
      },
      {
        path: '/jyzd/import',
        name: 'JyzdImport',
        component: () => import(/* webpackChunkName: "jyzd" */ '@/jyzd/Import.vue')
      },
      {
        path: '/jyzd/export',
        name: 'JyzdExport',
        component: () => import(/* webpackChunkName: "jyzd" */ '@/jyzd/Export.vue')
      },
      {
        path: '/jyzd/importresult/:id',
        name: 'JyzdImportResult',
        component: () => import(/* webpackChunkName: "jyzd" */ '@/jyzd/Importresult.vue')
      },
      {
        path: '/jyzd/edit/:id',
        name: 'JyzdEdit',
        component: () => import(/* webpackChunkName: "jyzd" */ '@/jyzd/Edit.vue')
      },
      {
        path: '/jyzd/detail/:id',
        name: 'JyzdDetail',
        component: () => import(/* webpackChunkName: "jyzd" */ '@/jyzd/detail.vue')
      },
      {
        path: '/jyzd',
        name: 'Jyzd',
        component: () => import(/* webpackChunkName: "jyzd" */ '@/jyzd/List.vue')
      },
      {
        path: '/candidate/import',
        name: 'CandidateImport',
        component: () => import(/* webpackChunkName: "candidate" */ '@/candidate/Import.vue')
      },
      {
        path: '/candidate/export',
        name: 'CandidateExport',
        component: () => import(/* webpackChunkName: "candidate" */ '@/candidate/Export.vue')
      },
      {
        path: '/candidate/importresult/:id',
        name: 'CandidateImportResult',
        component: () => import(/* webpackChunkName: "candidate" */ '@/candidate/Importresult.vue')
      },
      {
        path: '/candidate/edit/:id',
        name: 'CandidateEdit',
        component: () => import(/* webpackChunkName: "candidate" */ '@/candidate/Edit.vue')
      },
      {
        path: '/candidate/detail/:id',
        name: 'CandidateDetail',
        component: () => import(/* webpackChunkName: "candidate" */ '@/candidate/detail.vue')
      },
      {
        path: '/candidate',
        name: 'Candidate',
        component: () => import(/* webpackChunkName: "candidate" */ '@/candidate/List.vue')
      },
      {
        path: '/selection',
        name: 'Selection',
        component: () => import(/* webpackChunkName: "assess" */ '@/selection/List.vue')
        // component: (resolve) => require(['@/assess/List.vue'], resolve)
        // component: assessList
      },
      {
        path: '/selection/task',
        name: 'selectionTask',
        component: () => import(/* webpackChunkName: "assess" */ '@/selection/Task.vue')
        // component: (resolve) => require(['@/assess/List.vue'], resolve)
        // component: assessList
      },
      {
        path: '/selection/taskcn',
        name: 'selectionTaskCn',
        component: () => import(/* webpackChunkName: "assess" */ '@/selection/Taskcn.vue')
        // component: (resolve) => require(['@/assess/List.vue'], resolve)
        // component: assessList
      },
      {
        path: '/selection/taskjdc',
        name: 'selectionTaskjdc',
        component: () => import(/* webpackChunkName: "assess" */ '@/selection/Taskjdc.vue')
        // component: (resolve) => require(['@/assess/List.vue'], resolve)
        // component: assessList
      },
      {
        path: '/selection/taskjdccn',
        name: 'selectionTaskjdccn',
        component: () => import(/* webpackChunkName: "assess" */ '@/selection/Taskjdccn.vue')
        // component: (resolve) => require(['@/assess/List.vue'], resolve)
        // component: assessList
      },
      {
        path: '/selection/taskleader',
        name: 'selectionTaskLeader',
        component: () => import(/* webpackChunkName: "assess" */ '@/selection/Taskleader.vue')
        // component: (resolve) => require(['@/assess/List.vue'], resolve)
        // component: assessList
      },
      {
        path: '/selection/dongyi/:id',
        name: 'selectionDongyi',
        component: () => import(/* webpackChunkName: "assess" */ '@/selection/Dongyi.vue')
        // component: (resolve) => require(['@/assess/List.vue'], resolve)
        // component: assessList
      },
      {
        path: '/selection/sendofflist',
        name: 'sendofflist',
        component: () => import(/* webpackChunkName: "assess" */ '@/selection/sendofflist.vue')
        // component: (resolve) => require(['@/assess/List.vue'], resolve)
        // component: assessList
      },
      {
        path: '/selection/dongyihou',
        name: 'selectionDongyihou',
        component: () => import(/* webpackChunkName: "assess" */ '@/selection/Dongyihou.vue')
        // component: (resolve) => require(['@/assess/List.vue'], resolve)
        // component: assessList
      },
      {
        path: '/selection/dongyilist',
        name: 'selectionDongyilist',
        component: () => import(/* webpackChunkName: "assess" */ '@/selection/Dongyilist.vue')
        // component: (resolve) => require(['@/assess/List.vue'], resolve)
        // component: assessList
      },
      {
        path: '/selection/dongyifinish',
        name: 'selectionDongyiFinish',
        component: () => import(/* webpackChunkName: "assess" */ '@/selection/Dongyifinish.vue')
        // component: (resolve) => require(['@/assess/List.vue'], resolve)
        // component: assessList
      },
      {
        path: '/selection/dongyileader',
        name: 'selectionDongyiLeader',
        component: () => import(/* webpackChunkName: "assess" */ '@/selection/Dongyileader.vue')
        // component: (resolve) => require(['@/assess/List.vue'], resolve)
        // component: assessList
      },
      {
        path: '/selection/necessary',
        name: 'selectionNecessary',
        component: () => import(/* webpackChunkName: "assess" */ '@/selection/necessary/list.vue')
        // component: (resolve) => require(['@/assess/List.vue'], resolve)
        // component: assessList
      },
      {
        path: '/selection/necessarygbc',
        name: 'selectionNecessaryGbc',
        component: () => import(/* webpackChunkName: "assess" */ '@/selection/necessary/listgbc.vue')
        // component: (resolve) => require(['@/assess/List.vue'], resolve)
        // component: assessList
      },
      {
        path: '/selection/necessary/todo/:id',
        name: 'selectionNecessaryTodo',
        component: () => import(/* webpackChunkName: "assess" */ '@/selection/necessary/todo.vue')
        // component: (resolve) => require(['@/assess/List.vue'], resolve)
        // component: assessList
      },
      {
        path: '/selection/necessary/leaderlist',
        name: 'selectionNecessaryLeaderlist',
        component: () => import(/* webpackChunkName: "assess" */ '@/selection/necessary/leaderlist.vue')
        // component: (resolve) => require(['@/assess/List.vue'], resolve)
        // component: assessList
      },
      {
        path: '/selection/necessary/detail/:id',
        name: 'selectionNecessaryDetail',
        component: () => import(/* webpackChunkName: "assess" */ '@/selection/necessary/detail.vue')
        // component: (resolve) => require(['@/assess/List.vue'], resolve)
        // component: assessList
      },
      {
        path: '/selection/tuijian/detail/:id',
        name: 'selectionTuijianDetail2',
        component: () => import(/* webpackChunkName: "assess" */ '@/selection/tuijian/detail.vue')
        // component: (resolve) => require(['@/assess/List.vue'], resolve)
        // component: assessList
      },
      {
        path: '/selection/kaocha/detail/:id',
        name: 'selectionKaochaDetail2',
        component: () => import(/* webpackChunkName: "assess" */ '@/selection/kaocha/detail.vue')
        // component: (resolve) => require(['@/assess/List.vue'], resolve)
        // component: assessList
      },
      {
        path: '/selection/taolun/detail/:id',
        name: 'selectionTaolunDetail2',
        component: () => import(/* webpackChunkName: "assess" */ '@/selection/taolun/Detail.vue')
        // component: (resolve) => require(['@/assess/List.vue'], resolve)
        // component: assessList
      },
      {
        path: '/selection/kaocha',
        name: 'kaocha',
        component: () => import('@/selection/kaocha/Kaocha')
      },
      {
        path: '/selection/kaochaleader',
        name: 'kaochaleader',
        component: () => import('@/selection/kaocha/Kaochaleader')
      },
      {
        path: '/selection/kaochacn',
        name: 'kaochacn',
        component: () => import('@/selection/kaocha/Kaochacn')
      },
      {
        path: '/selection/kaochad',
        name: 'kaochad',
        component: () => import('@/selection/kaocha/KaochaDetail')
      },
      {
        path: '/selection/kaochad2',
        name: 'kaochad2',
        component: () => import('@/selection/kaocha/KaochaDetail2')
      },
      {
        path: '/selection/kaochads',
        name: 'kaochads',
        component: () => import('@/selection/kaocha/KaochaDetailShow')
      },
      {
        path: '/selection/gongshi',
        name: 'gongshi',
        component: () => import('@/selection/gongshi/Gongshi')
      },
      {
        path: '/selection/gongshigbc',
        name: 'gongshigbc',
        component: () => import('@/selection/gongshi/Gongshigbc')
      },
      {
        path: '/selection/gongshicn',
        name: 'gongshicn',
        component: () => import('@/selection/gongshi/Gongshicn')
      },
      {
        path: '/selection/baobeicn',
        name: 'baobeicn',
        component: () => import('@/selection/baobei/Baobeicn')
      },
      {
        path: '/selection/manageOpinionCn',
        name: 'manageOpinionCn',
        component: () => import('@/selection/manageOpinion/manageOpinionCn')
      },
      {
        path: '/selection/gongshif/:id',
        name: 'gongshif',
        component: () => import('@/selection/gongshi/GongshiFinish')
      },
      {
        path: '/selection/gongshisz',
        name: 'gongshisz',
        component: () => import('@/selection/gongshi/Gongshisz')
      },
      {
        path: '/selection/taolun',
        name: 'taolun',
        component: () => import('@/selection/taolun/Taolun')
      },
      {
        path: '/selection/taoluncn',
        name: 'taoluncn',
        component: () => import('@/selection/taolun/Taoluncn')
      },
      {
        path: '/selection/taolunf/:id',
        name: 'taolunf',
        component: () => import('@/selection/taolun/TaolunFinish')
      },
      {
        path: '/selection/taolunsz',
        name: 'taolunsz',
        component: () => import('@/selection/taolun/Taolunsz')
      },
      {
        path: '/selection/tuijian',
        name: 'tuijian',
        component: () => import('@/selection/tuijian/Tuijian')
      },
      {
        path: '/selection/tuijianleader',
        name: 'tuijianleader',
        component: () => import('@/selection/tuijian/Tuijianleader')
      },
      {
        path: '/selection/tuijiancn',
        name: 'tuijiancn',
        component: () => import('@/selection/tuijian/Tuijiancn')
      },
      {
        path: '/selection/tuijiand',
        name: 'tuijiand',
        component: () => import('@/selection/tuijian/TuijianDetail')
      },
      {
        path: '/selection/tuijiand2',
        name: 'tuijiand2',
        component: () => import('@/selection/tuijian/TuijianDetail2')
      },
      {
        path: '/selection/tuijiands',
        name: 'tuijiands',
        component: () => import('@/selection/tuijian/TuijianDetailShow')
      },
      {
        path: '/selection/candidateReport',
        name: 'candidateReport',
        component: () => import('@/selection/candidateReport/candidateReport')
      },
      {
        path: '/selection/candidateReportLeader',
        name: 'candidateReportLeader',
        component: () => import('@/selection/candidateReport/candidateReportLeader')
      },
      {
        path: '/selection/candidateReportCn',
        name: 'candidateReportCn',
        component: () => import('@/selection/candidateReport/candidateReportCn')
      },
      {
        path: '/selection/candidateReportDetail',
        name: 'candidateReportDetail',
        component: () => import('@/selection/candidateReport/candidateReportDetail')
      },
      {
        path: '/selection/candidateReportDetailShow',
        name: 'candidateReportDetailShow',
        component: () => import('@/selection/candidateReport/candidateReportDetailShow')
      },
      {
        path: '/selection/xuanbu',
        name: 'selectionXuanbu',
        component: () => import('@/selection/xuanbu/Xuanbu')
      },
      {
        path: '/selection/xuanbuleader',
        name: 'selectionXuanbuLeader',
        component: () => import('@/selection/xuanbu/Xuanbuleader')
      },
      {
        path: '/selection/xuanbucn',
        name: 'selectionXuanbuCn',
        component: () => import('@/selection/xuanbu/Xuanbucn')
      },
      {
        path: '/selection/tanhua',
        name: 'selectionTanhua',
        component: () => import('@/selection/tanhua/Tanhua')
      },
      {
        path: '/selection/tanhualeader',
        name: 'selectionTanhuaLeader',
        component: () => import('@/selection/tanhua/Tanhualeader')
      },
      {
        path: '/selection/tanhuacn',
        name: 'selectionTanhuaCn',
        component: () => import('@/selection/tanhua/Tanhuacn')
      },
      {
        path: '/selection/tanhua2',
        name: 'selectionTanhua2',
        component: () => import('@/selection/tanhua2/Tanhua')
      },
      {
        path: '/selection/tanhualeader2',
        name: 'selectionTanhuaLeader2',
        component: () => import('@/selection/tanhua2/Tanhualeader')
      },
      {
        path: '/selection/tanhuacn2',
        name: 'selectionTanhuaCn2',
        component: () => import('@/selection/tanhua2/Tanhuacn')
      },
      {
        path: '/selection/baobei',
        name: 'baobei',
        component: () => import('@/selection/baobei/Baobei')
      },
      {
        path: '/selection/baobeif/:id',
        name: 'baobeif',
        component: () => import('@/selection/baobei/BaobeiFinish')
      },
      {
        path: '/selection/baobeisz',
        name: 'baobeisz',
        component: () => import('@/selection/baobei/Baobeisz')
      },
      {
        path: '/selection/manageOpinion',
        name: 'manageOpinion',
        component: () => import('@/selection/manageOpinion/manageOpinion')
      },
      {
        path: '/selection/manageOpinionFinish/:id',
        name: 'manageOpinionFinish',
        component: () => import('@/selection/manageOpinion/manageOpinionFinish')
      },
      {
        path: '/selection/manageOpinionLeader',
        name: 'manageOpinionLeader',
        component: () => import('@/selection/manageOpinion/manageOpinionLeader')
      },
      {
        path: '/selection/manageOpinionDetailShow',
        name: 'manageOpinionDetailShow',
        component: () => import('@/selection/manageOpinion/manageOpinionDetailShow')
      },
      {
        path: '/selection/fawen',
        name: 'fawen',
        component: () => import('@/selection/fawen/Fawen')
      },
      {
        path: '/selection/fawencn',
        name: 'fawencn',
        component: () => import('@/selection/fawen/Fawencn')
      },
      {
        path: '/selection/fawenf/:id',
        name: 'fawenf',
        component: () => import('@/selection/fawen/FawenFinish')
      },
      {
        path: '/selection/fawensz',
        name: 'fawensz',
        component: () => import('@/selection/fawen/Fawensz')
      },
      {
        path: '/selection/guidang/:id',
        name: 'guidang',
        component: () => import('@/selection/guidang/Guidang')
      },
      // {
      //   path: '/mingce',
      //   name: 'Mingce',
      //   component: Mingce
      // },
      {
        path: '/train',
        name: 'Train',
        component: () => import(/* webpackChunkName: "train" */ '@/train/index.vue')
      },
      {
        path: '/trainbatch/:id',
        name: 'trainBatch',
        component: () => import(/* webpackChunkName: "train" */ '@/train/batch.vue')
      },
      {
        path: '/trainauth',
        name: 'trainAuth',
        component: () => import(/* webpackChunkName: "train" */ '@/train/auth.vue')
      },
      {
        path: '/trainperson',
        name: 'trainPerson',
        component: () => import(/* webpackChunkName: "train" */ '@/train/person.vue')
      },
      {
        path: '/trainchart',
        name: 'trainChart',
        component: () => import(/* webpackChunkName: "train" */ '@/train/chart.vue')
      },
      {
        path: '/shenghuohui',
        name: 'Shenghuohui',
        component: () => import(/* webpackChunkName: "shenghuohui1" */ '@/Shenghuohui/index.vue')
        // component: Shenghuohui
      },
      {
        path: '/shenghuohuiauth',
        name: 'ShenghuohuiAuth',
        component: () => import(/* webpackChunkName: "shenghuohui1" */ '@/Shenghuohui/auth.vue')
        // component: Shenghuohui
      },
      {
        path: 'home',
        name: 'Home',
        component: Home
      },
      {
        path: 'person',
        name: 'Person',
        component: () => import(/* webpackChunkName: "person" */ '@/Person')
        // component: Person
      },
      {
        path: 'personlist',
        name: 'PersonList',
        component: () => import(/* webpackChunkName: "PersonList" */ '@/Person/personlist.vue')
        // component: Person
      },
      {
        path: 'dept',
        name: 'Dept',
        component: () => import(/* webpackChunkName: "dept" */ '@/Dept.vue')
        // component: Dept
      },
      // {
      //   path: 'person/import',
      //   name: 'Import',
      //   component: Import
      // },
      {
        path: 'person/detail/:id',
        name: 'PersonDetail',
        component: () => import(/* webpackChunkName: "person" */ '@/person/Detail.vue')
        // component: PersonDetail
      },
      // {
      //   path: 'person/Edit/:id',
      //   name: 'PersonEdit',
      //   component: PersonEdit
      // },
      {
        path: 'user',
        name: 'User',
        component: User
      },
      {
        path: 'test',
        name: 'Test',
        component: test
      },
      {
        path: 'shenghuohui/Detail2022/:id',
        name: 'ShenghuohuiDetail2022',
        component: () => import(/* webpackChunkName: "shenghuohui1" */ '@/Shenghuohui/Detail2022.vue')
        // component: shenghuohuiDetail
      },
      // {
      //   path: 'shenghuohui/Detail/Unit/:id',
      //   name: 'shenghuohuiUnit',
      //   component: () => import(/* webpackChunkName: "shenghuohui2" */ '@/Shenghuohui/Unit.vue')
      //   // component: shenghuohuiUnit
      // },
      {
        path: 'zhidu',
        name: 'Zhidu',
        component: () => import(/* webpackChunkName: "zhidu" */ '@/zhidu/index.vue')
        // component: Zhidu
      },
      {
        path: 'zhidu/import',
        name: 'ZhiduImport',
        component: () => import(/* webpackChunkName: "zhidu" */ '@/Zhidu/import.vue')
        // component: ZhiduImport
      },
      {
        path: 'dept/import',
        name: 'DeptImport',
        component: () => import(/* webpackChunkName: "dept" */ '@/Dept/import.vue')
        // component: DeptImport
      },
      {
        path: 'dept/log',
        name: 'ImportLog',
        component: () => import(/* webpackChunkName: "dept" */ '@/Dept/log.vue')
        // component: ImportLog
      },
      {
        path: 'log',
        name: 'Log',
        component: () => import(/* webpackChunkName: "dept" */ '@/Dept/allLog.vue')
        // component: ImportLog
      },
      {
        path: 'cluereport',
        name: 'ClueReport',
        component: () => import(/* webpackChunkName: "dept" */ '@/clueReport/List.vue')
        // component: ImportLog
      },
      {
        path: 'cluereport/log',
        name: 'ClueReportLog',
        component: () => import(/* webpackChunkName: "dept" */ '@/clueReport/log.vue')
        // component: ImportLog
      },
      {
        path: 'cluereport/chart',
        name: 'ClueReportChart',
        component: () => import(/* webpackChunkName: "dept" */ '@/clueReport/chart.vue')
        // component: ImportLog
      },
      {
        path: 'cadrehandling',
        name: 'CadreHandling',
        component: () => import(/* webpackChunkName: "dept" */ '@/cadreHandling/List.vue')
      },
      {
        path: 'cadrehandling/log',
        name: 'CadreHandlingLog',
        component: () => import(/* webpackChunkName: "dept" */ '@/cadreHandling/log.vue')
      },
      {
        path: 'cadrehandling/chart',
        name: 'CadreHandlingChart',
        component: () => import(/* webpackChunkName: "dept" */ '@/cadreHandling/chart.vue')
      },
      {
        path: 'youngCadres/personlist',
        name: 'youngCadresPersonList',
        component: () => import(/* webpackChunkName: "youngCadres" */ '@/youngCadres/personList.vue')
      },
      {
        path: 'youngCadres/deptlist',
        name: 'youngCadresDeptList',
        component: () => import(/* webpackChunkName: "youngCadres" */ '@/youngCadres/deptList.vue')
      },
      {
        path: 'youngCadres/deptpersonlist',
        name: 'youngCadresDeptPersonList',
        component: () => import(/* webpackChunkName: "youngCadres" */ '@/youngCadres/deptPersonList.vue')
      },
      {
        path: 'youngCadres/log',
        name: 'youngCadresLog',
        component: () => import(/* webpackChunkName: "youngCadresAdmin" */ '@/youngCadres/log.vue')
      },
      {
        path: 'youngCadres/analyse',
        name: 'youngCadresAnalyse',
        component: () => import(/* webpackChunkName: "youngCadres" */ '@/youngCadres/webdatarock.vue')
      },
      {
        path: 'youngCadres/yearlist',
        name: 'youngCadresYearList',
        component: () => import(/* webpackChunkName: "youngCadres" */ '@/youngCadres/yearList.vue')
      },
      {
        path: 'fileDistribution',
        name: 'fileDistribution',
        component: () => import(/* webpackChunkName: "unitReport" */ '@/fileDistribution/List.vue')
      },
      {
        path: 'unitReport',
        name: 'unitReport',
        component: () => import(/* webpackChunkName: "unitReport" */ '@/unitReport/List.vue')
      },
      {
        path: '/unitReport/unitList/:id',
        name: 'unitReportUnitList',
        component: () => import(/* webpackChunkName: "unitReport" */ '@/unitReport/unitList.vue')
      },
      {
        path: '/unitReport/unitProjectDetail/:id',
        name: 'unitReportProjectDetail',
        component: () => import(/* webpackChunkName: "unitReport" */ '@/unitReport/unitProjectDetail.vue')
      },
      {
        path: '/unitReport/customUnitProjectDetail/:id',
        name: 'unitReportCustomProjectDetail',
        component: () => import(/* webpackChunkName: "unitReport" */ '@/unitReport/customUnitProjectDetail.vue')
      },
      {
        path: '/unitReport/customUnitProjectDetail2025/:id',
        name: 'unitReportCustomProjectDetail2025',
        component: () => import(/* webpackChunkName: "unitReport" */ '@/unitReport/customUnitProjectDetail2025.vue')
      },
      {
        path: '/unitReport/customUnitProjectDeptDetail/:id',
        name: 'unitReportCustomProjectDeptDetail',
        component: () => import(/* webpackChunkName: "unitReport" */ '@/unitReport/customUnitProjectDeptDetail.vue')
      },
      {
        path: '/unitReport/customUnitProjectDeptDetail2025/:id',
        name: 'unitReportCustomProjectDeptDetail2025',
        component: () => import(/* webpackChunkName: "unitReport" */ '@/unitReport/customUnitProjectDeptDetail2025.vue')
      },
      {
        path: '/unitReport/customUnitProjectDeptDetailDeath2025/:id',
        name: 'unitReportCustomProjectDeptDetailDeath2025',
        component: () => import(/* webpackChunkName: "unitReport" */ '@/unitReport/customUnitProjectDeptDetailDeath2025.vue')
      },
      {
        path: '/meeting',
        name: 'meeting',
        component: () => import(/* webpackChunkName: "meeting" */ '@/meeting/index.vue')
      },
      {
        path: '/meeting/list/:id',
        name: 'meetinglist',
        component: () => import(/* webpackChunkName: "meeting" */ '@/meeting/list.vue')
      },
      {
        path: '/meeting/deptlist/:id',
        name: 'meetingDeptList',
        component: () => import(/* webpackChunkName: "meeting" */ '@/meeting/deptlist.vue')
      },
      {
        path: '/meeting/showlist/:id',
        name: 'meetingShowList',
        component: () => import(/* webpackChunkName: "meeting" */ '@/meeting/showlist.vue')
      },
      {
        path: 'workRecord',
        name: 'workRecord',
        component: () => import(/* webpackChunkName: "workRecord" */ '@/workRecord/List.vue')
      },
      {
        path: 'shiyongqi',
        name: 'shiyongqi',
        component: () => import(/* webpackChunkName: "shiyongqi" */ '@/Shiyongqi/List.vue')
      },
      {
        path: 'workRecord/allList',
        name: 'workRecordAllList',
        component: () => import(/* webpackChunkName: "workRecord" */ '@/workRecord/allList.vue')
      },
      {
        path: 'shenghuohui/Detail/:id',
        name: 'ShenghuohuiDetail',
        component: () => import(/* webpackChunkName: "shenghuohui" */ '@/Shenghuohui/Detail.vue')
      },
      {
        path: 'shenghuohui/DetailOld/:id',
        name: 'ShenghuohuiDetailOld',
        component: () => import(/* webpackChunkName: "shenghuohui" */ '@/Shenghuohui/DetailOld.vue')
      },
      {
        path: 'shenghuohui/Detail/Unit/:id',
        name: 'shenghuohuiUnit2018',
        component: () => import(/* webpackChunkName: "shenghuohui" */ '@/Shenghuohui/Unit.vue')
      },
      {
        path: 'shenghuohui/Detail/Unit2019/:id',
        name: 'shenghuohuiUnit2019',
        component: () => import(/* webpackChunkName: "shenghuohui" */ '@/Shenghuohui/Unit2019.vue')
      },
      {
        path: 'shenghuohui/Detail/Unit2020/:id',
        name: 'shenghuohuiUnit2020',
        component: () => import(/* webpackChunkName: "shenghuohui" */ '@/Shenghuohui/Unit2020.vue')
      },
      {
        path: 'shenghuohui/Detail/Unit2021/:id',
        name: 'shenghuohuiUnit2021',
        component: () => import(/* webpackChunkName: "shenghuohui" */ '@/Shenghuohui/Unit2021.vue')
      },
      {
        path: 'shenghuohui/Detail/Unit2022/:id',
        name: 'shenghuohuiUnit2022',
        component: () => import(/* webpackChunkName: "shenghuohui" */ '@/Shenghuohui/Unit2022.vue')
      },
      {
        path: 'shenghuohui/Detail/Unit2023/:id',
        name: 'shenghuohuiUnit2023',
        component: () => import(/* webpackChunkName: "shenghuohui" */ '@/Shenghuohui/Unit2023.vue')
      },
      {
        path: 'shenghuohui/Detail/Unit2024/:id',
        name: 'shenghuohuiUnit2024',
        component: () => import(/* webpackChunkName: "shenghuohui" */ '@/Shenghuohui/Unit2024.vue')
      },
      {
        path: 'shenghuohui/List',
        name: 'shenghuohuiList',
        component: () => import(/* webpackChunkName: "shenghuohui" */ '@/Shenghuohui/List.vue')
      },
      {
        path: 'zbbsmz/main',
        name: 'zbbsmzMain',
        component: () => import(/* webpackChunkName: "zbbsmz" */ '@/zbbsmz/main.vue')
      },
      {
        path: 'zbbsmz/import',
        name: 'zbbsmzImportData',
        component: () => import(/* webpackChunkName: "zbbsmz" */ '@/zbbsmz/import.vue')
      },
      {
        path: 'zbbsmz/analyse',
        name: 'zbbsmzAnalyse',
        component: () => import(/* webpackChunkName: "zbbsmz" */ '@/zbbsmz/webdatarock.vue')
      },
      {
        path: 'jinsheng/main',
        name: 'jinshengMain',
        component: () => import(/* webpackChunkName: "zbbsmz" */ '@/jinsheng/main.vue')
      },
      {
        path: 'map',
        name: 'Map',
        component: Map
      },
      {
        path: 'password',
        name: 'password',
        component: () => import(/* webpackChunkName: "dept" */ '@/password.vue')
      },
      {
        path: '/recruit',
        name: 'recruit',
        component: () => import(/* webpackChunkName: "recruit" */ '@/recruit/select.vue')
      },
      {
        path: '/recruit/index',
        name: 'recruitIndex',
        component: () => import(/* webpackChunkName: "recruit" */ '@/recruit/index.vue')
      },
      {
        path: '/recruit/main',
        name: 'recruitMain',
        component: () => import(/* webpackChunkName: "recruit" */ '@/recruit/Main.vue')
      },
      {
        path: '/recruit/yearlist',
        name: 'recruitYearList',
        component: () => import(/* webpackChunkName: "recruit" */ '@/recruit/yearList.vue')
      },
      {
        path: '/recruit/unit',
        name: 'recruitUnit',
        component: () => import(/* webpackChunkName: "recruit" */ '@/recruit/Unit.vue')
      },
      {
        path: '/recruit/auth',
        name: 'recruitAuth',
        component: () => import(/* webpackChunkName: "recruit" */ '@/recruit/Auth.vue')
      },
      {
        path: '/recruit/person',
        name: 'recruitPerson',
        component: () => import(/* webpackChunkName: "recruit" */ '@/recruit/Person.vue')
      },
      {
        path: '/recruit/unitview',
        name: 'recruitUnitView',
        component: () => import(/* webpackChunkName: "recruit" */ '@/recruit/unitView.vue')
      },
      {
        path: '/post',
        name: 'post',
        component: () => import(/* webpackChunkName: "recruit" */ '@/post/select.vue')
      },
      {
        path: '/post/index',
        name: 'postIndex',
        component: () => import(/* webpackChunkName: "recruit" */ '@/post/index.vue')
      },
      {
        path: '/post/main',
        name: 'postMain',
        component: () => import(/* webpackChunkName: "recruit" */ '@/post/Main.vue')
      },
      {
        path: '/post/search',
        name: 'postSearch',
        component: () => import(/* webpackChunkName: "recruit" */ '@/post/search.vue')
      },
      {
        path: '/salary',
        name: 'salaryIndex',
        component: () => import(/* webpackChunkName: "salary" */ '@/salary/index.vue')
      },
      {
        path: '/salary/list',
        name: 'salaryList',
        component: () => import(/* webpackChunkName: "salary" */ '@/salary/List.vue')
      },
      {
        path: '/salary/standardlist',
        name: 'StandardList',
        component: () => import(/* webpackChunkName: "salary" */ '@/salary/StandardList.vue')
      },
      // {
      //   path: '/recruit/main',
      //   name: 'recruitMain',
      //   component: () => import(/* webpackChunkName: "recruit" */ '@/recruit/main.vue')
      // },
      // {
      //   path: '/recruit/Detail',
      //   name: 'recruitDetail',
      //   component: () => import(/* webpackChunkName: "recruit" */ '@/recruit/Detail.vue')
      // }
      {
        path: '/staffing',
        name: 'staffingIndex',
        component: () => import(/* webpackChunkName: "staffing" */ '@/staffing/index.vue')
      },
      {
        path: '/staffing/org',
        name: 'staffingOrg',
        component: () => import(/* webpackChunkName: "staffing" */ '@/staffing/org.vue')
      },
      {
        path: '/staffing/fill',
        name: 'staffingFill',
        component: () => import(/* webpackChunkName: "staffing" */ '@/staffing/fill.vue')
      },
      {
        path: '/staffing/manage',
        name: 'staffingManage',
        component: () => import(/* webpackChunkName: "staffing" */ '@/staffing/manage.vue')
      },
      {
        path: '/iplist/list',
        name: 'IpList',
        component: () => import(/* webpackChunkName: "staffing" */ '@/Iplist/List.vue')
      },
      {
        path: '/supervision',
        name: 'supervision',
        component: () => import(/* webpackChunkName: "unitReport" */ '@/supervision/List.vue')
      },
      {
        path: '/supervision/unitList/:id',
        name: 'supervisionUnitList',
        component: () => import(/* webpackChunkName: "unitReport" */ '@/supervision/unitList.vue')
      },
      {
        path: '/supervision/customUnitProjectDetail/:id',
        name: 'supervisionCustomProjectDetail',
        component: () => import(/* webpackChunkName: "unitReport" */ '@/supervision/customUnitProjectDetail.vue')
      },
      {
        path: '/supervision/customUnitProjectDeptDetail/:id',
        name: 'supervisionCustomProjectDeptDetail',
        component: () => import(/* webpackChunkName: "unitReport" */ '@/supervision/customUnitProjectDeptDetail.vue')
      },
      {
        path: '/supervision/auth',
        name: 'supervisionAuth',
        component: () => import(/* webpackChunkName: "unitReport" */ '@/supervision/auth.vue')
      },
      {
        path: '/supervision/unitAuth/:id',
        name: 'supervisionUnitAuth',
        component: () => import(/* webpackChunkName: "unitReport" */ '@/supervision/unitAuth.vue')
      }
    ]
  },
  {
    name: '404',
    path: '/404',
    component: () => import('@/404.vue')
  },
  {
    path: '/init',
    name: 'init',
    component: () => import(/* webpackChunkName: "dept" */ '@/init.vue')
  },
  {
    path: '/unit',
    name: 'unitmain',
    redirect: '/unit/home',
    component: () => import(/* webpackChunkName: "dept" */ '@/unit/main.vue'),
    children: [
      {
        path: '/unit/home',
        name: 'unithome',
        component: () => import(/* webpackChunkName: "assess" */ '@/unit/home.vue')
        // component: assessImport
      },
      {
        path: '/unit/password',
        name: 'unitpassword',
        component: () => import(/* webpackChunkName: "dept" */ '@/password.vue')
      },
      {
        path: '/unit/youngCadresDept',
        name: 'youngCadresDept',
        component: () => import(/* webpackChunkName: "dept" */ '@/youngCadres/dept.vue')
      },
      {
        path: '/unit/unitReport',
        name: 'unitReportProjectList',
        component: () => import(/* webpackChunkName: "dept" */ '@/unitReport/unitProjectList.vue')
      },
      {
        path: '/unit/unitDetail/:id',
        name: 'unitReportUnitDetail',
        component: () => import(/* webpackChunkName: "dept" */ '@/unitReport/unitDetail.vue')
      },
      {
        path: '/unit/customUnitDetail/:id',
        name: 'unitReportCustomUnitDetail',
        component: () => import(/* webpackChunkName: "dept" */ '@/unitReport/customUnitDetail.vue')
      },
      {
        path: '/unit/customUnitDetail2025/:id',
        name: 'unitReportCustomUnitDetail2025',
        component: () => import(/* webpackChunkName: "dept" */ '@/unitReport/customUnitDetail2025.vue')
      },
      {
        path: '/unit/customDeptDetail/:id',
        name: 'unitReportCustomDeptDetail',
        component: () => import(/* webpackChunkName: "dept" */ '@/unitReport/customDeptDetail.vue')
      },
      {
        path: '/unit/customDeptDetail2025/:id',
        name: 'unitReportCustomDeptDetail2025',
        component: () => import(/* webpackChunkName: "dept" */ '@/unitReport/customDeptDetail2025.vue')
      },
      {
        path: '/unit/customDeptDetailDeath2025/:id',
        name: 'unitReportCustomDeptDetailDeath2025',
        component: () => import(/* webpackChunkName: "dept" */ '@/unitReport/customDeptDetailDeath2025.vue')
      },
      {
        path: '/unit/fileDistribution',
        name: 'unitFileDistributionList',
        component: () => import(/* webpackChunkName: "dept" */ '@/fileDistribution/unitList.vue')
      },
      {
        path: '/unit/shenghuohui',
        name: 'unitShenghuohui',
        component: () => import(/* webpackChunkName: "dept" */ '@/Shenghuohui/unitmain.vue')
      },
      {
        path: '/unit/shenghuohui2022',
        name: 'unitShenghuohui2022',
        component: () => import(/* webpackChunkName: "dept" */ '@/Shenghuohui/unitmain2022.vue')
      },
      {
        path: '/unit/shenghuohui2023',
        name: 'unitShenghuohui2023',
        component: () => import(/* webpackChunkName: "dept" */ '@/Shenghuohui/unitmain2023.vue')
      },
      {
        path: '/unit/shenghuohui2024',
        name: 'unitShenghuohui2024',
        component: () => import(/* webpackChunkName: "dept" */ '@/Shenghuohui/unitmain2024.vue')
      },
      {
        path: '/unit/shenghuohuiList',
        name: 'unitShenghuohuiList',
        component: () => import(/* webpackChunkName: "dept" */ '@/Shenghuohui/unitlist.vue')
      },
      {
        path: '/recruit/unit/projectList',
        name: 'recruitUnitProjectList',
        component: () => import(/* webpackChunkName: "recruit" */ '@/recruit/unitlist.vue')
      },
      {
        path: '/recruit/unit/projectDetail',
        name: 'recruitUnitDetail',
        component: () => import(/* webpackChunkName: "recruit" */ '@/recruit/unitDetail.vue')
      },
      {
        path: '/recruit/unit/baseInfo',
        name: 'recruitUnitBaseInfo',
        component: () => import(/* webpackChunkName: "recruit" */ '@/recruit/unitBaseInfo.vue')
      },
      {
        path: '/recruit/unit/person',
        name: 'recruitUnitPerson',
        component: () => import(/* webpackChunkName: "recruit" */ '@/recruit/unitPerson.vue')
      },
      {
        path: '/recruit/unit/audit',
        name: 'recruitUnitAudit',
        component: () => import(/* webpackChunkName: "recruit" */ '@/recruit/unitAudit.vue')
      },
      {
        path: '/recruit/unit/auditdetail',
        name: 'recruitUnitAuditDetail',
        component: () => import(/* webpackChunkName: "recruit" */ '@/recruit/unitAuditDetail.vue')
      },
      {
        path: '/post/unit/main',
        name: 'postUnitMain',
        component: () => import(/* webpackChunkName: "recruit" */ '@/post/unitMain.vue')
      },
      {
        path: '/salary/unit/main',
        name: 'salaryUnitMain',
        component: () => import(/* webpackChunkName: "recruit" */ '@/salary/unitMain.vue')
      },
      {
        path: '/staffing/org',
        name: 'staffingUnitOrg',
        component: () => import(/* webpackChunkName: "staffing" */ '@/staffing/org.vue')
      },
      {
        path: '/supervision/unitProjectList',
        name: 'supervisionUnitProjectList',
        component: () => import(/* webpackChunkName: "dept" */ '@/supervision/unitProjectList.vue')
      },
      {
        path: '/supervision/customUnitDetail/:id',
        name: 'supervisionCustomUnitDetail',
        component: () => import(/* webpackChunkName: "dept" */ '@/supervision/customUnitDetail.vue')
      },
      {
        path: '/supervision/customDeptDetail/:id',
        name: 'supervisionCustomDeptDetail',
        component: () => import(/* webpackChunkName: "dept" */ '@/supervision/customDeptDetail.vue')
      }
    ]
  },
  {
    path: '/login',
    name: 'login',
    component: Login
  },
  {
    path: '/assess/ticket',
    name: 'AssessTicket',
    component: () => import(/* webpackChunkName: "assess" */ '@/assess/Ticket.vue'),
    // component: (resolve) => require(['@/assess/List.vue'], resolve)
    // component: assessList
    children: [
      {
        path: '/assess/ticket/add',
        name: 'AssessTicketAdd',
        component: () => import(/* webpackChunkName: "assess" */ '@/components/Ticket.vue')
        // component: assessImport
      }
    ]
  },
  {
    path: '*', // 此处需特别注意至于最底部
    redirect: '/404'
  }
]
// 页面刷新时，重新赋值token
// if (localStorage.getItem('token')) {
//   var params = {data: localStorage.getItem('token'), user: localStorage.getItem('user'), Roles: localStorage.getItem('Roles'), pwdFlag: localStorage.getItem('pwdFlag'), unitName: localStorage.getItem('unitName')}
//   store.commit(types.LOGIN, params)
// }
console.log('router加载')
const router = new Router({
  mode: 'history',
  routes
})
router.beforeEach((to, from, next) => {
  console.log('from.name')
  console.log(from.name)
  console.log('to.name')
  console.log(to.name)
  // alert('fromname:' + from.name + ',to.name:' + to.name)
  if (to.name !== 'login') { // to.matched.some(r => r.meta.requireAuth)
    if (localStorage.getItem('token')) {
      if (localStorage.getItem('Roles')) {
        if (localStorage.getItem('Roles').indexOf('ROLE_other') > -1) {
          let pathArr = [
            'init',
            'unitmain',
            'unitpassword',
            'unithome',
            'youngCadresDept',
            'unitReportProjectList',
            'unitReportUnitDetail',
            'unitReportCustomUnitDetail',
            'unitReportCustomUnitDetail2025',
            'unitReportCustomDeptDetail',
            'unitReportCustomDeptDetail2025',
            'unitReportCustomDeptDetailDeath2025',
            'unitFileDistributionList',
            'unitShenghuohui',
            'unitShenghuohui2022',
            'unitShenghuohui2023',
            'unitShenghuohui2024',
            'unitShenghuohuiList',
            'recruitUnitProjectList',
            'recruitUnitDetail',
            'recruitUnitAudit',
            'recruitUnitBaseInfo',
            'recruitUnitPerson',
            'recruitUnitAuditDetail',
            'postUnitMain',
            'salaryUnitMain',
            'staffingUnitOrg',
            'supervisionUnitProjectList',
            'supervisionCustomUnitDetail',
            'supervisionCustomDeptDetail'
          ]
          if (pathArr.indexOf(to.name) > -1) {
            if (JSON.parse(localStorage.getItem('pwdFlag')) || to.name === 'unitpassword') {
              next()
            } else {
              next({
                name: 'unitpassword'
              })
            }
          } else {
            localStorage.clear()
            next({
              path: '/login',
              query: { redirect: to.fullPath }
            })
          }
        } else {
          if (JSON.parse(localStorage.getItem('pwdFlag')) || to.name === 'password') {
            next()
          } else {
            next({
              name: 'password'
            })
          }
        }
      } else {
        next({
          path: '/login',
          query: { redirect: to.fullPath }
        })
      }
    } else {
      // next()
      next({
        path: '/login',
        query: { redirect: to.fullPath }
      })
    }
  } else {
    next()
  }
})

export default router
